<?php
class Apps_View_Helper_LabelEnquireReferenceType extends Apps_View_Helper_LabelBase {
    public $map = array(
        Model_DbTable_Enquire::REFERENCE_TYPE_TOUR   		=> array('Tour', 'label-success'),
        Model_DbTable_Enquire::REFERENCE_TYPE_HOTEL			=> array('Hotel', 'label-warning'),
        Model_DbTable_Enquire::REFERENCE_TYPE_CRUISE		=> array('Cruise', 'label-important'),
        Model_DbTable_Enquire::REFERENCE_TYPE_NOT_DEFINE	=> array('All', 'label-danger')
    );

    public function labelEnquiresReferenceType($type, $label=true) {
        return $this->map($type, $label);
    }
}